home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / include / incl98.zoo / mouse.h < prev    next >
C/C++ Source or Header  |  1993-07-10  |  414b  |  25 lines

  1. #ifndef _MOUSE_H
  2. #define _MOUSE_H
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. /* header file for mouse access */
  9.  
  10. struct mouse_buf {
  11.     int m_buttons;    /* button states */
  12.     int m_dx;    /* change in x since last read */
  13.     int m_dy;    /* change in y since last read */
  14. };
  15.  
  16. #define M_LEFT_BUTTON    0x02
  17. #define M_RIGHT_BUTTON    0x01
  18. #define M_MID_BUTTON    0x00    /* there is none! */
  19.  
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23.  
  24. #endif /* _MOUSE_H */
  25.